package cn.wenhe9.yygh.hosp.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * @author DuJinliang
 * 2022/3/23
 */
public class HttpRequestHelper {
    public static Map<String, Object> switchMap(Map<String, String[]> requestMap){

        Map<String, Object> map = new HashMap<>();

        for (Map.Entry<String, String[]> entry : requestMap.entrySet()) {
            map.put(entry.getKey(), entry.getValue()[0]);
        }

        return map;
    }
}
